// types/git.ts - 类型定义文件
export interface GitCommit {
  hash: string;
  author: string;
  email: string;
  date: string;
  message: string;
  body: string;
}

export interface GitAuthor {
  name: string;
  email: string;
}

export interface GitResult<T = any> {
  success: boolean;
  data?: T;
  error?: string;
}

export interface CommitModificationResult {
  hash: string;
  success: boolean;
  error?: string;
}

export interface CommitHistoryResult {
  success: boolean;
  history?: GitCommit[];
  error?: string;
}

export interface CloneResult {
  success: boolean;
  path?: string;
  error?: string;
}

export interface PushResult {
  success: boolean;
  error?: string;
}

export interface ModifyCommitsResult {
  success: boolean;
  results?: CommitModificationResult[];
  error?: string;
}
